/*
size A  8
size B  12
size C  16
*/
#include <iostream>

using namespace std;

class A
{
public:
    int a;
    int b;
};

class B:public A
{
public:
    int c;
};

class C:public B
{
public:
    int d;
};

int main(int argc, char **argv)
{
    cout << "size A  " << sizeof(A) << endl;
    cout << "size B  " << sizeof(B) << endl;
    cout << "size C  " << sizeof(C) << endl;
    return 0;
}